#ifndef TRANSFERFORM_H
#define TRANSFERFORM_H

#include <QWidget>
#include "moveableframelessdialog.h"
#include <QList>
#include "../wsim_client.h"
#include "src/model/singleton.h"    //单例

namespace Ui {
class transferForm;
}

class transferForm : public MoveableFramelessDialgo,public Singleton<transferForm>
{
    Q_OBJECT

public:
    friend class Singleton<transferForm>;
    transferForm(QWidget *parent = 0);
    ~transferForm();
    QWidget*getDragnWidget();
    void addItem(int tfd,int ffd,int magic,int maxPageNum,QString label);
    void removeItem(int tfd,int ffd,int magic);

    void onThemeColorChange(QString colorStr);

    void beginTransfer(int index);
    void setTitle(QString title);
public slots:
    void updateProgress(int tfd,int ffd, int magic,int index);
        void onQThreadFinished();
signals:
    /**
     * @brief 主题颜色改变事件
     * @param colorStr
     */
    void themColorChanged(QString colorStr);
private:
    Ui::transferForm *ui;

protected:

    //主题改变

private slots:
       void doClose();

};

#define MY_TRANSFER_FORM transferForm::getInstance()
#endif // TRANSFERFORM_H
